package com.zzx.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description controller测试类
 * @ClassName HelloController
 * @Author Alex
 * @Date 2019/2/18 18:26
 * @Version 1.0
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/test")
    public String test(Model model) {
        model.addAttribute("name", "zengzexiong");
        return "hello";
    }
}
